package com.jianbing.zuixia.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianbing.common.annotation.Excel;
import com.jianbing.common.core.domain.BaseEntity;

/**
 * 最下金币记录对象 zuixia_coins
 * 
 * @author wyj
 * @date 2024-07-10
 */
public class ZuixiaCoins extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 最下金币id记录号 */
    @Excel(name = "最下金币id记录号")
    private Long id;

    /** 平台id */
    @Excel(name = "平台id")
    private Long userid;

    /** 获取金币数额 */
    @Excel(name = "获取金币数额")
    private Long coins;

    /** 原因 */
    @Excel(name = "原因")
    private String reason;

    /** 获得日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "获得日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setCoins(Long coins) 
    {
        this.coins = coins;
    }

    public Long getCoins() 
    {
        return coins;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userid", getUserid())
            .append("coins", getCoins())
            .append("reason", getReason())
            .append("date", getDate())
            .toString();
    }
}
